﻿using System;
using System.Diagnostics;
using EasyComm.Base.Hosting;
using EasyComm.Contracts;
using EasyComm.Hosting.Administration;

namespace EasyComm.SLB.ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            AdminServiceHostBase adminHost = new AdminServiceHostBase(AdminServiceType.SLBAdmin, typeof(SLBAdminService), new Type[] { typeof(IAdminSLBContract) }, null);
            adminHost.Open();
            Trace.WriteLine(string.Format("SLB Admin listening on '{0}'...", adminHost.Contracts[0].ListenUri));
            Trace.WriteLine("");

            Trace.WriteLine("Press Enter key to exit.");
            Console.ReadLine();
            adminHost.Close();
        }
    }
}
